# Contributor: prspkt <prspkt@protonmail.com>
# Maintainer: prspkt <prspkt@protonmail.com>
pkgname=py3-d2to1
_pkgname=d2to1
pkgver=0.2.12
pkgrel=1
pkgdesc="Allows using distutils2-like setup.cfg files with setup.py"
url="https://pypi.org/project/d2to1"
arch="noarch"
license="BSD-3-Clause"
depends="python3"
makedepends="py3-setuptools python3-dev"
checkdepends="py3-nose"
source="$_pkgname-$pkgver.tar.gz::https://github.com/embray/d2to1/archive/$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

build() {
	python3 setup.py build
}

check() {
	nosetests
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="3f5376c1a6c9459e8aa062ff92ed4ee5e840ca48cffb92bd9373bc4e2bc61c423e8b9b9cdb11f848446a84bed9010b99f28b105a28c39a6a74afb918049fa9c6  d2to1-0.2.12.tar.gz"
